package org.southyin.securitysamples.mapper;

import org.apache.ibatis.annotations.Param;
import org.southyin.securitysamples.model.Article;

import java.util.List;

public interface ArticleMapper {
    List<Article> listArticle(@Param("keyWords") String keyWords,@Param("status") long status);

    List<Article> listArticleOfAdmin(@Param("keyWords") String keyWords,@Param("adminId") long adminId);

    int insertArticle(Article article);

    int updateArticle(Article article);

    Article getArticleById(Long id);

    Article getArticleDetailsOfCustomerById(Long id);

    Article getArticleDetailsOfAdminById(Long id);
}
